import request from '@/utils/request'

export default {
  getCaselibList(params) {
    return request({
      url: '/functional/caselib/list',
      method: 'get',
      params: params
    })
  },
  getCaselibOptions() {
    return request({
      url: '/functional/caselib/options',
      method: 'get'
    })
  },
  createCaselib(data) {
    return request({
      url: '/functional/caselib/create',
      method: 'post',
      data
    })
  },
  updateCaselib(data) {
    return request({
      url: `/functional/caselib/update/${data.id}`,
      method: 'put',
      data
    })
  },
  deleteCaselib(data) {
    return request({
      url: '/functional/caselib/delete',
      method: 'delete',
      data
    })
  },
  followCaselib(data) {
    return request({
      url: `/functional/caselib/follow`,
      method: 'post',
      data
    })
  }
}
